package top.pengdong.pictureShare.userAuth.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class TestController {
 
    @GetMapping("/test")
    public String test(HttpServletRequest request){
        return "hello world, uri:" + request.getRequestURI();
    }
 
 
 
    @GetMapping("/test1")
    public String defaultPath(HttpServletRequest request){
        return "hello world, uri:" + request.getRequestURI();
    }
}